﻿using LiSAClient.Core.Viewmodel;

namespace LiSAClient.WpfClient.ViewModel.Frame
{
    public class WaitViewModel : ContentViewModel
    {
        private string text = string.Empty;

        public string Text
        {
            get
            {
                return this.text;
            }

            set
            {
                this.Set(() => this.Text, ref text, value);
            }
        }

        private bool isVisible;

        public bool IsVisible
        {
            get
            {
                return this.isVisible;
            }

            set
            {
                this.Set(() => this.IsVisible, ref isVisible, value);
            }
        }

        public WaitViewModel()
        {
            this.Text = string.Empty;
            this.IsVisible = false;
        }

        public WaitViewModel(string message)
        {
            this.Text = message;
            this.IsVisible = false;
        }
    }
}
